package mx.iteso.comp;

import mx.iteso.comp.lexer.*;
import mx.iteso.comp.node.*;
import java.io.*;

public class Compiler
{
	public static void main(String[] arguments)
	{
        try
		{
			System.out.println("Reading File");
			Token t;
			
			// Create a Parser instance.
			Lexer l =
			
					new Lexer( 
					new PushbackReader(
					new FileReader("/Users/rafaelag/test.in"), 1024));
			
            while(true){
                try{
                    t = l.next();
                    if(t instanceof EOF){
                        break;
                    }
                    System.out.println(t);
                    
                }catch(Exception e){
                    
                }
            }
			
			
		}
		catch(Exception e)
		{
			System.out.println(e.getMessage());
		}
	}
}